package yf.mall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import yf.mall.dao.StoresDao;
import yf.mall.entity.StoresEntity;
import yf.mall.service.StoresService;
import com.yf.service.impl.BaseServiceImpl;

/**
 * 线下店铺Service实现类
 *
 *
 *
 * @date Thu Jul 23 10:38:48 CST 2020
 */
@Service
public class StoresServiceImpl extends BaseServiceImpl<StoresEntity> implements StoresService {

    private StoresDao storesDao;


    @Autowired
    public void setDao(StoresDao storesDao) {
        this.storesDao = storesDao;
        super.setBaseDao(storesDao);
    }


    /**
     *
     *
     @Override
     List<StoresVo> queryListVo(StoresVo storesVo){
            return storesDao.queryListVo(storesVo);
     }

     @Override
     StoresVo getVo(Long id){
                return storesDao.getVo(id);
    }

     **/


    /**内部方法**/


    @Override
    public StoresEntity findByUserCode(String userCode) {
        return this.storesDao.findByUserCode(userCode);
    }

    @Override
    public StoresEntity findByName(String name) {
        return this.storesDao.findByName(name);
    }

    @Override
    public StoresEntity findByUserId(Long userId) {
        return this.storesDao.findByUserId(userId);
    }


    /**外部方法实现**/



}
